package com.bolehui.domain.dto;

import com.bolehui.base.enums.GenderTypeEnum;
import com.bolehui.base.enums.UserTypeEnum;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author chendongjie     email:chendongjie@gz.iscas.ac.cn
 * @version 1.0
 * @ClassName UserDTO
 * @Description
 * @createTime 2024/12/9 11:37
 * Copyright (C) 2021-2022 CASEEDER, All Rights Reserved.
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 */
@Data
public class UserDTO {
    private Long userId;
    @NotNull(message = "用户名不能为空")
    private String userName;
    private String fullName;
    @NotNull(message = "密码不能为空")
    private String password;
    private String sex;
    private UserTypeEnum userType;
    private Date birthDate;
    private String phoneNumber;
    @Email(message = "邮箱格式不正确")
    private String email;
    private String status;
    private String headImage;
    private String code;
    private String age;
}
